package com.hefei

import org.apache.spark.rdd.RDD
import org.apache.spark.{SparkConf, SparkContext}

/**
 * @author caizhengjun
 * @date 2020/8/27 8:22 下午
 */
object RDDTest {
  def main(args: Array[String]): Unit = {
    val conf: SparkConf = new SparkConf().setMaster("local[2]").setAppName(this.getClass.getSimpleName)
    val sc: SparkContext = new SparkContext(conf)

    val ints = List(1, 2, 3, 4, 5, 6, 7, 8, 9, 0)

    val unit: RDD[Int] = sc.parallelize(ints, 2)
    val unit1: RDD[Int] = sc.makeRDD(ints, 2)

  }
}
